{include file="public/header" /}
<body>
<div class="layui-fluid layui-anim layui-anim-fadein">
    <form action="{:url('save')}" class="layui-form" lay-filter="builderForm" data-token="{$builderTableToken}" data-nav="{$navTitle}" data-just="{$just}">
        <div class="layui-card">
            <div class="layui-card-body">
                <div class="layui-row">
                    <input type="hidden" name="id" value="{$info.id}">
                    <div class="layui-col-xs12 layui-col-sm12 layui-col-md6">
                        <div class="layui-form-item">
                            <label class="layui-form-label">交易单号</label>
                            <div class="layui-input-block">
                                <input type="text" value="{$info.sn}"
                                       class="layui-input" readonly>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-xs12 layui-col-sm12 layui-col-md6">
                        <div class="layui-form-item">
                            <label class="layui-form-label">挂单号</label>
                            <div class="layui-input-block">
                                <input type="text" value="{$info.trade.sn}"
                                       class="layui-input" readonly>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-xs12 layui-col-sm12 layui-col-md6">
                        <div class="layui-form-item">
                            <label class="layui-form-label">买家信息</label>
                            <div class="layui-input-block">
                                <input type="text" value="{$info.buyer.code}-{$info.buyer.nickname}-{$info.buyer.mobile}"
                                       class="layui-input" readonly>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-xs12 layui-col-sm12 layui-col-md6">
                        <div class="layui-form-item">
                            <label class="layui-form-label">卖家信息</label>
                            <div class="layui-input-block">
                                <input type="text" value="{$info.seller.code}-{$info.seller.nickname}-{$info.seller.mobile}"
                                       class="layui-input" readonly>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-xs12 layui-col-sm12 layui-col-md6">
                        <div class="layui-form-item">
                            <label class="layui-form-label">交易账户</label>
                            <div class="layui-input-block">
                                <input type="text" value="{$info.account}" class="layui-input" readonly>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-xs12 layui-col-sm12 layui-col-md6">
                        <div class="layui-form-item">
                            <label class="layui-form-label">交易数量</label>
                            <div class="layui-input-block">
                                <input type="number" value="{$info.amount}" class="layui-input" readonly>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-xs12 layui-col-sm12 layui-col-md6">
                        <div class="layui-form-item">
                            <label class="layui-form-label">价格</label>
                            <div class="layui-input-block">
                                <input type="number" value="{$info.price}" class="layui-input" readonly>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-xs12 layui-col-sm12 layui-col-md6">
                        <div class="layui-form-item">
                            <label class="layui-form-label">实际打款金额</label>
                            <div class="layui-input-block">
                                <input type="number" value="{$info.real_amount}" class="layui-input" readonly>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-xs12 layui-col-sm12 layui-col-md6">
                        <div class="layui-form-item">
                            <label class="layui-form-label">状态</label>
                            <div class="layui-input-block">
                                <input type="text" value="{$info.status_name}" class="layui-input" readonly>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-xs12 layui-col-sm12 layui-col-md6">
                        <div class="layui-form-item">
                            <label class="layui-form-label">交易时间</label>
                            <div class="layui-input-block">
                                <input type="text" value="{$info.create_time}" class="layui-input" readonly>
                            </div>
                        </div>
                    </div>
                    {if $info.pay_time}
                    <div class="layui-col-xs12 layui-col-sm12 layui-col-md6">
                        <div class="layui-form-item">
                            <label class="layui-form-label">支付方式</label>
                            <div class="layui-input-block">
                                <input type="text" value="{$info.method_name}" class="layui-input" readonly>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-xs12 layui-col-sm12 layui-col-md6">
                        <div class="layui-form-item">
                            <label class="layui-form-label">打款凭证</label>
                            <div class="layui-input-block">
                                <a href="{$info.images}" target="_blank">
                                    <img src="{$info.images}" style="width: 150px" />
                                </a>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-xs12 layui-col-sm12 layui-col-md6">
                        <div class="layui-form-item">
                            <label class="layui-form-label">打款时间</label>
                            <div class="layui-input-block">
                                <input type="text" value="{$info.pay_time}" class="layui-input" readonly>
                            </div>
                        </div>
                    </div>
                    {/if}
                    {if $info.receipt_time}
                    <div class="layui-col-xs12 layui-col-sm12 layui-col-md6">
                        <div class="layui-form-item">
                            <label class="layui-form-label">收款时间</label>
                            <div class="layui-input-block">
                                <input type="text" value="{$info.receipt_time}" class="layui-input" readonly>
                            </div>
                        </div>
                    </div>
                    {/if}
                    {if $info.finish_time}
                    <div class="layui-col-xs12 layui-col-sm12 layui-col-md6">
                        <div class="layui-form-item">
                            <label class="layui-form-label">完成时间</label>
                            <div class="layui-input-block">
                                <input type="text" value="{$info.finish_time}" class="layui-input" readonly>
                            </div>
                        </div>
                    </div>
                    {/if}
                    {if $info.cancel_time}
                    <div class="layui-col-xs12 layui-col-sm12 layui-col-md6">
                        <div class="layui-form-item">
                            <label class="layui-form-label">取消时间</label>
                            <div class="layui-input-block">
                                <input type="text" value="{$info.cancel_time}" class="layui-input" readonly>
                            </div>
                        </div>
                    </div>
                    {/if}
                    {if $info.appeal_time}
                    <div class="layui-col-xs12 layui-col-sm12 layui-col-md6">
                        <div class="layui-form-item">
                            <label class="layui-form-label">申诉内容</label>
                            <div class="layui-input-block">
                                <input type="text" value="{$info.content}" class="layui-input" readonly>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-xs12 layui-col-sm12 layui-col-md6">
                        <div class="layui-form-item">
                            <label class="layui-form-label">申诉图片</label>
                            <div class="layui-input-block">
                                <a href="{$info.appeal_img}" target="_blank">
                                    <img src="{$info.appeal_img}" style="width: 150px" />
                                </a>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-xs12 layui-col-sm12 layui-col-md6">
                        <div class="layui-form-item">
                            <label class="layui-form-label">申诉时间</label>
                            <div class="layui-input-block">
                                <input type="text" value="{$info.appeal_time}" class="layui-input" readonly>
                            </div>
                        </div>
                    </div>
                    {/if}
                    {if $info->getData('status') == 5}
                    <div class="layui-col-xs12 layui-col-sm12 layui-col-md6">
                        <div class="layui-form-item">
                            <label class="layui-form-label">审核</label>
                            <div class="layui-input-block">
                                <input type="radio" name="status" value="3" title="确认收款" checked>
                                <input type="radio" name="status" value="2" title="取消交易">
                            </div>
                        </div>
                    </div>
                    {/if}
                </div>
                {if $info->getData('status') == 5}
                {include file="public/submit" /}
                {/if}
            </div>
        </div>
    </form>
</div>
</body>
{include file="public/footer" /}
<script>
    layui.use(['edit'], function () {
        layui.edit.render();
    });
</script>
</html>